package com.woniuxy.automotivemanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("news")
public class News {
    @TableId(value = "nid",type = IdType.AUTO)
    private Integer nid;//新闻id
    private String type;//新闻类型
    private String title;//新闻标题
    private String content;//新闻内容
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createtime;//新闻创建时间
    private String remarks;//新闻描述
    private String author;//新闻作者
    private Integer status;//新闻状态

}
